//export const URL = 'http://localhost:9000/'
export const URL = 'http://47.98.232.57:9000/'
//头像url
export const faceUrl = URL + 'userFace?name='
//图片url
export const imgUrl = URL + 'image?name='
//视频url
export const videoUrl = URL + 'video?vid='
//上传头像
export const uploadFace = URL + 'api/upload/face'
//上传封面
export const uploadCover = URL + 'api/upload/cover'
//上传视频
export const uploadVideo = URL + 'api/upload/video'
//上传轮播图
export const uploadCarouse = URL + 'api/upload/carousel'

//视频封面
export function coverUrl (name) {
    return URL + 'cover?name=' + name
}

//头像
export function toFaceUrl(name){
    return faceUrl + name
}

export function toCarouselUrl(name){
    return imgUrl + name
}